package br.com.ngame.core;

import java.awt.Graphics2D;

public abstract class GameLevel
{
	private GameCore game;
	
	public void setGame(GameCore game)
	{
		this.game = game;
	}
	
	public GameCore getGame()
	{
		return game;
	}

	public void runMenu()
	{
		getGame().setNextLevel(getGame().getMenuLevel());
	}
	
	public void runLevel(GameLevel level)
	{
		getGame().setNextLevel(level);
	}
    
	public abstract void load();
    public abstract void unload();
    public abstract void updateLogic(int currentFrame);
    public abstract void render(Graphics2D screenBuffer);
}